<template>
  <grid-view>
    <goods-list-item v-for="(item, index) in goods" :goods-item="item" :key="index"/>
  </grid-view>
<!--  <div class="goods">-->
<!--    <goods-list-item v-for="(item, index) in goods" :goods-item="item" :key="index"/>-->
<!--  </div>-->
</template>

<script>
  import GoodsListItem from "./GoodsListItem";
  import GridView from "@/components/common/gridView/GridView";

  export default {
    name: "GoodsList",
    components: {
      GridView,
      GoodsListItem
    },
    props: {
      goods: {
        type: Array,
        default() {
          return []
        }
      }
    },
  }
</script>

<style scoped>
  /*.goods {*/
  /*  display: flex;*/
  /*  !* 让弹性盒元素在必要的时候拆行*!*/
  /*  flex-wrap: wrap;*/
  /*  justify-content: space-around;*/
  /*  padding: 2px;*/
  /*}*/
</style>
